package top.dingwen.io.treasure.encrypt.api.constant;

import top.dingwen.io.treasure.base.constant.IConstant;

/**
 * EncryptConstant : 加解密场景启动器
 *
 * @author dingwen
 * @since 2024/7/18 10:23
 */
public final class EncryptApiConstant implements IConstant {


    /**
     * 加解密过滤器名称
     */
    public static final String EN_FILTER_NAME = "cryptoFilter";

    /**
     * mvc请求映射器处理器Bean名称
     */
    public static final String RM_HM = "requestMappingHandlerMapping";

    /**
     * mvc异常处理器Bean名称
     */
    public static final String RM_HER = "handlerExceptionResolver";

    /**
     * 通配*
     */
    public static final String EN_STR_STAR = "*";

    /**
     * 默认拦截地址
     */
    public static final String DEFAULT_INTERCEPT_URL = "/*";

    /**
     * 访问控制请求头
     */
    public static final String EN_H_AC_EH = "Access-Control-Expose-Headers";
    public static final String EN_H_AC_AO = "Access-Control-Allow-Origin";
    public static final String EN_H_AC_AM = "Access-Control-Allow-Methods";

    /**
     * 日志打印前缀
     */
    public static final String EN_L_P_S = "[encrypt-api]加解密场景启动器";
    public static final String EN_L_P_CF = "[CryptoFilter]加解密过滤器";
    public static final String EN_L_P_API = "[EncryptApiIndexController]默认API";
}
